import { createApp } from 'vue'
import {createPinia} from "pinia";
import 'element-plus/dist/index.css';
// import 'element-plus/theme-chalk/dark/css-vars.css'
// import "@/assets/css/css-vars.css";
import router from "@/router/";
import {getCurrentRoutes} from "@/grants/routes"
import './style.css'
import App from './App.vue'



const app = createApp(App)

app.use(createPinia());
if (
   !( sessionStorage.getItem("checkedkeys") == null ||
   sessionStorage.getItem("checkedkeys") == undefined)
  ) {
    getCurrentRoutes()
}

app.use(router);

app.mount('#app')
